<ul class="nav nav-list" slot="nav">
  <nav-item title="仪表盘" href="<%= admin_path %>" icon="dashboard"
            active-pattern="<%= "^#{admin_path}$" %>"></nav-item>

  <nav-item title="基础配置" href="#" icon="object-group" open>

    <% if can? :manage, User %>
        <nav-item title="人员管理" href="<%= admin_users_path %>" icon="user" %>
          <span class="badge badge-info" slot="badge"><%= User.all.count %></span>
        </nav-item>
    <% end %>
    <% if can? :manage, Role %>
        <nav-item title="角色管理" href="<%= admin_roles_path %>" icon="user-secret" %></nav-item>
    <% end %>
    <% if can? :manage, Permission %>
        <nav-item title="权限管理" href="<%= admin_permissions_path %>" icon="key"></nav-item>
    <% end %>
    <% if can? :manage, CodeTable %>
        <nav-item title="码表管理" href="<%= admin_code_tables_path %>" icon="list-alt">
          <span class="badge badge-info" slot="badge"><%= CodeTable.all.count %></span>
        </nav-item>
    <% end %>
    <% if can? :manage, CodeTable %>
    <nav-item title="订单管理" href="<%= admin_orders_path %>" icon="map"></nav-item>
    <nav-item title="售后服务订单" href="<%= admin_gps_path %>" icon="map"></nav-item>
    <%end%>
  </nav-item>
  <% if Rails.env == 'development' %>
      <nav-item title="样式(开发环境可见)" href="<%= admin_guide_path %>" icon="desktop"></nav-item>
  <% end %>
</ul>